package com.zzw.zim.system.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 新增系统角色DTO
 *
 * @author XiaoJie
 * @date 2025-09-01 09:43:18
 */
@Schema(description = "新增系统角色DTO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddSysRoleDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Schema(description = "角色名称")
	@NotBlank(message = "角色名称不可为空！请检查")
	private String name;

	@Schema(description = "备注")
	private String remark;

	@Schema(description = "数据范围（0：全部数据；1：本机构及子机构数据；2：本机构数据；3：本人数据；4：自定义数据）")
	private Integer dataScope;

	@Schema(description = "机构ID")
	private Long orgId;

	@Schema(description = "版本号")
	private Integer version;

	@Schema(description = "创建者")
	private String creator;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	@Schema(description = "更新者")
	private String updater;

	@Schema(description = "更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

}
